Skip to content

Improve contributing tutorial documentation#486

Open
Jeebjean wants to merge 1 commit into
Reed-CompBio:mainfrom
Jeebjean:fix/contributing-tutorial-docs
Open

Improve contributing tutorial documentation#486
Jeebjean wants to merge 1 commit into
Reed-CompBio:mainfrom
Jeebjean:fix/contributing-tutorial-docs

Conversation

@Jeebjean

Copy link
Copy Markdown

Summary

Addresses documentation gaps identified in #480.

Changes made

  • Fix Dataset API example in Step 3 to use DatasetSchema instead of a plain dict (the old example fails with the current API)
  • Add pre-flight environment checklist to Prerequisites section
  • Add note about PAT workflow scope requirement in Step 7

Out of scope for this PR (team decisions needed)

  • Stub template directory for new algorithms
  • Replacing PathLinker with a simpler Dockerfile reference
  • OS-specific instructions (macOS vs Linux)

cc @agitter
cc @ntalluri

- Fix Dataset API example to use DatasetSchema instead of plain dict
- Add pre-flight environment checklist to Prerequisites section
- Add note about PAT workflow scope requirement in Step 7

Closes Reed-CompBio#480
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 spras | 🛠️ Build #33096385 | 📁 Comparing 55fad8d against latest (d990664)

  🔍 Preview build  

5 files changed · ± 5 modified

± Modified

@ntalluri ntalluri left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. I left some questions on stuff that could be added or changed but they're more suggestions.

docker login
conda --version
git --version

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we also add a check to make sure SPRAS conda env is ready?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

python -c "import spras; print('SPRAS import successful')" is what is in the spras tutorial.


.. note::

If you are using HTTPS to push and your commit touches files in

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just explicitly say for developers to use SSH to push to SPRAS in the contributing guide? And then add a warning that if you use https the issues you mentioned will happen.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this affects the workflows updates, let's put it in the step that first affects files there. That's Step 5, right?

There are two types of tokens, which makes things even more confusing. How is this rephrased language?

These tests modify files in .github/workflows/. If you push over HTTPS using a Personal Access Token, make sure the token has permission to modify GitHub Actions workflows. Otherwise, GitHub may reject the push. SSH push works without this restriction.

``main`` branch of the fork stays synchronized with the ``main`` branch
of the main SPRAS repository.


Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove these new white space lines?

@agitter agitter left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to add another Note section in the Prereqs with some of the suggestions for macOS users, that could be a place to provide links about the different shell, miniconda, OrbStack, etc.

I don't see a better example Dockerfile than PathLinker because I find the COPY example important. If you want to propose a language change that suggests parts of the PathLinker Dockerfile to ignore, we could do that.




Before getting started, verify your environment is ready with these checks:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the indentation


.. code:: bash

docker --version

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to have these checks, should we also add the expected output? The specific output will be different depending on what each contributor has installed, but I think we should give some guidance about how someone can tell if everything is ready or not. Maybe the signal is that they don't get errors?


.. note::

If you are using HTTPS to push and your commit touches files in

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this affects the workflows updates, let's put it in the step that first affects files there. That's Step 5, right?

There are two types of tokens, which makes things even more confusing. How is this rephrased language?

These tests modify files in .github/workflows/. If you push over HTTPS using a Personal Access Token, make sure the token has permission to modify GitHub Actions workflows. Otherwise, GitHub may reject the push. SSH push works without this restriction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants